package cn.zyk.moudle.login.controller;

class MyThread {
    public void run() {
        System.out.println("异步线程正在执行，线程名: " + Thread.currentThread().getName());
        throw new RuntimeException();
    }


    public static void main(String[] args) {
        try {
            MyThread myThread = new MyThread();
            myThread.run();
            System.out.println("主线程正在执行，线程名: " + Thread.currentThread().getName());
        } catch (Exception e) {
            System.out.println("=======错误");
        } finally {
            System.out.println("aaaaaaaaa");
        }
    }
}

